﻿<UserControl x:Class="CP.NLayer.Client.WpfClient.Modules.Admin.User.UserDisplayView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:c="clr-namespace:CP.NLayer.Client.WpfClient.Common;assembly=CP.NLayer.Client.WpfClient.Common"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:l="http://wpflocalizeextension.codeplex.com"
             l:LocalizeDictionary.DesignCulture=""
             l:ResxLocalizationProvider.DefaultAssembly="CP.NLayer.Resources"
             l:ResxLocalizationProvider.DefaultDictionary="MResources"
             mc:Ignorable="d" d:DesignHeight="224" d:DesignWidth="656">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <c:CrudBar />
        <telerik:RadGridView Grid.Row="1" x:Name="radGridView" ItemsSource="{Binding PagedSource, ElementName=radDataPager1}" IsReadOnly="True" ShowGroupPanel="False"
                            IsBusy="{Binding Items.IsPageChanging}"  SelectionMode="Extended" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" 
                            CanUserDeleteRows="False" CanUserInsertRows="False" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding Id}" IsGroupable="False" IsFilterable="False"  IsSortable="False"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LoginName}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding FullName}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding RoleNames}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding IsActive}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        <telerik:RadDataPager Grid.Row="2"
                                   x:Name="radDataPager1"
                                   BorderThickness="1,0,1,1"
                                   Source="{Binding Items}"
                                   DisplayMode="All"
                                   AutoEllipsisMode="Both"
                                   NumericButtonCount="10"
                                   IsTotalItemCountFixed="True"/>
    </Grid>
</UserControl>
